Skip to content

Support MySQL KEY keyword in column definitions#2243

Merged
yoavcloud merged 2 commits intoapache:mainfrom
mvzink:push-vuqvpqzkltln
Feb 27, 2026
Merged

Support MySQL KEY keyword in column definitions#2243
yoavcloud merged 2 commits intoapache:mainfrom
mvzink:push-vuqvpqzkltln

Conversation

@mvzink
Copy link
Contributor

@mvzink mvzink commented Feb 25, 2026

Add supports_key_column_option() dialect trait method to enable MySQL-specific KEY syntax in column-level constraints:

  • UNIQUE [KEY] — optional KEY after UNIQUE
  • [PRIMARY] KEY — standalone KEY as shorthand for PRIMARY KEY

Add `supports_key_column_option()` dialect trait method to enable
MySQL-specific KEY syntax in column-level constraints:
- `UNIQUE [KEY]` — optional KEY after UNIQUE
- `[PRIMARY] KEY` — standalone KEY as shorthand for PRIMARY KEY
@yoavcloud yoavcloud enabled auto-merge February 27, 2026 10:55
@yoavcloud yoavcloud added this pull request to the merge queue Feb 27, 2026
Merged via the queue into apache:main with commit 83baf5e Feb 27, 2026
10 checks passed
@mvzink mvzink deleted the push-vuqvpqzkltln branch February 27, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants